package lab02.test11;

public class Rectangle {
    int length;
    int wide;

    public int getArea()
    {
        return length * wide;
    }
    public int getPerimeter()
    {
        return (length + wide) * 2;
    }
    public void printMyMay() {
        System.out.println("长:" + length);
        System.out.println("宽:" + wide);
        System.out.println("面积:" + getArea());
        System.out.println("周长:" + getPerimeter());
    }

}
